<template>
  <WarehouseForm :warehouseId="warehouseId"></WarehouseForm>
</template>
<script setup name="EditWarehouse">
import { useRoute, useRouter } from 'vue-router'
import WarehouseForm from '@/views/sourceManage/warehouseMange/modules/warehouseForm'
const route = useRoute()
let warehouseId = ref(null)
watch(
  () => route.query.warehouseId,
  val => {
    if (route.query.warehouseId) {
      warehouseId.value = route.query.warehouseId
    }
  },
  {
    immediate: true
  }
)
</script>
